//
//  VCOfContact.m
//  UI14_StoryBoard
//
//  Created by 李劲成 on 16/3/28.
//  Copyright © 2016年 ljc. All rights reserved.
//

#import "VCOfContact.h"
#import "TableViewCell.h"
#import "CellOfAnimal.h"
@interface VCOfContact ()<UITableViewDataSource, UITableViewDelegate>



@end


@implementation VCOfContact

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
    return 10;
}

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
#if 0
    switch (indexPath.row) {
        case 0:
        case 1:
        {
            CellOfAnimal *cell = [tableView dequeueReusableCellWithIdentifier:@"pool1"];
            
            return cell;
        }
            break;
            
        default:
        {
            TableViewCell *cell1 = [tableView dequeueReusableCellWithIdentifier:@"pool"];
            return cell1;
        }
            break;
    }
#else

    if (indexPath.row % 2 == 0) {
        TableViewCell *cell1 = [tableView dequeueReusableCellWithIdentifier:@"pool"];
        return cell1;

    }
    else {
        CellOfAnimal *cell = [tableView dequeueReusableCellWithIdentifier:@"pool1"];
        
        return cell;
    }
#endif
}
/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
